package com.kool.evowkf.bean.io.approve;

import com.kool.core.base.BaseBean;
import com.kool.core.exception.AppException;
import com.kool.core.validate.IIoValidate;

/**
 * @AUTHOR LUYU
 */
public class CMCLSAPRXBean extends BaseBean implements IIoValidate {
	protected String entityCid;

	public String getEntityCid() {
		return entityCid;
	}

	public void setEntityCid(String entityCid) {
		this.entityCid = entityCid;
	}

	@Override
	public void validate() throws AppException {
		// 最大长度校验
		if (entityCid != null && entityCid.length() > 8) {
			throw new AppException("SY000038","entityCid",String.valueOf(8));//字段[%1]大于最大长度[%2]
		}
	}
}